<template>
   <h1>事件绑定指令</h1>
  <button  @click='state="点击了"'>点击</button>
<!--  <button v-on:click="">点击</button>-->
  <p>{{state}}</p>
</template>
<script setup>
    import {ref} from "vue";

    const state = ref('事件绑定指令');
    console.log(state.value);
</script>


<style scoped>

</style>